Explicitly bind Some(false)
authorDavid Tolnay <dtolnay@gmail.com>
Thu, 1 Sep 2016 21:17:42 +0000 (14:17 -0700)
committerDavid Tolnay <dtolnay@gmail.com>
Thu, 1 Sep 2016 21:17:42 +0000 (14:17 -0700)
src/cargo/util/toml.rs

index 15e5246315d711265063752c1bb32d6f772064df..ac94d3a2837e157d33ab1cf6d374e20aedbfe0ac 100644 (file)
@@ -1063,7 +1063,7 @@ fn normalize(lib: &Option<TomlLibTarget>,
               .set_for_host(match (toml.plugin, toml.rustc_macro) {
                   (None, None) => t2.for_host(),
                   (Some(true), _) | (_, Some(true)) => true,
-                  _ => false,
+                  (Some(false), _) | (_, Some(false)) => false,
               });
     }